package GUI;

import java.awt.Color;
import java.awt.Font;
import java.awt.geom.AffineTransform;
import javax.swing.JButton;
import javax.swing.border.EmptyBorder;

@SuppressWarnings("serial")
public class HoldemButton extends JButton{
	public HoldemButton(String label, Color color){
		super(label);
		this.setForeground(color);
		this.setSize(60, 40);
		this.setActionCommand(label);
		this.setBorder(new EmptyBorder(30, 20, 0, 20));
		Font customFont = getFont().deriveFont(Font.BOLD, AffineTransform.getRotateInstance(-0.5));
		this.setFont(customFont.deriveFont((float)20));
		this.setFocusPainted(false);
		this.setBorderPainted(false);
	}
}
